//封装一个点击按钮后按钮禁用和倒计时的方法
export default function buttonTiming(ele){
    let obj = {
        time:60
    }
    ele.disabled = true;
    let interval = setInterval(()=>{
        ele.innerHTML = obj.time;
        if(obj.time>0){
            obj.time--;
        }else{
            clearInterval(interval);
            ele.disabled = false;
            ele.innerHTML = '获取验证码';
        }
    },1000)
}